#ifndef PUT_FILE_H_
#define PUT_FILE_H_
#include "message.h"
#include "../encode_desencode.h"

class PutFile : public Message {
private:
	std::string file_name_;
        std::string hash_;
	std::string file_;
public:
	PutFile(std::string* fn, std::string* hash, std::string* file) : Message (9) {
		file_name_=*fn;
        hash_=*hash;
		file_=*file;
	}

	std::string Format ()
	{
		//Falta hashear
		std::string result(file_name_);
		HexEncode he(file_.c_str());
		//std::string hexa=he.Encode();
		result=result+"//"+hash_+" "+file_;
		return result;
	}
};



#endif /* PUT_FILE_H_ */
